import request from '@/utils/request'

// 列表
export function attractList(query) {
    return request({
        url: '/h5/apply/attractList',
        method: 'get',
        params: query
    })
}

// 新增
export function addAttract(data) {
    return request({
        url: '/h5/apply/addAttract',
        method: 'post',
        data: data
    })
}

// 详情
export function attractInfo(attractId) {
    return request({
        url: '/h5/apply/attractInfo/' + attractId,
        method: 'get'
    })
}

// 修改
export function editAttract(data) {
    return request({
        url: '/h5/apply/editAttract',
        method: 'put',
        data: data
    })
}

// 删除
export function removeAttract(attractId) {
    return request({
        url: '/h5/apply/removeAttract/' + attractId,
        method: 'delete'
    })
}